package com.flyduck.vueshop.cart.fallback;

import com.flyduck.vueshop.cart.feign.RemoteCartItemFeignClient;
import com.flyduck.vueshop.cart.vo.RemoteCartItemRespVO;
import com.flyduck.vueshop.common.core.lang.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * RemoteCartItemFallback
 * </p>
 *
 * @author flyduck
 * @since 2024-07-23
 */
@Slf4j
@Component
public class RemoteCartItemFallback implements RemoteCartItemFeignClient {
    @Override
    public Result<List<RemoteCartItemRespVO>> getCartItemListByIds(List<Long> ids) {
        log.error("获取购物车明细失败");
        return Result.success(new ArrayList<>());
    }

    @Override
    public Result<Void> deleteByIds(List<Long> ids) {
        log.error("删除购物车明细失败");
        return Result.success();
    }
}
